<!-- BEGIN PAGE CONTENT-->
<div class="row">
  <div class="col-md-12 portlet">
      <div class="portlet-body">

        <table class="col-md-6 table table-hover">

          <tr ><td width="25%">Hash</td><td>{{tx.hash}}</td></tr>
          <tr ><td width="25%">Block Number</td>
                <td>
                    <a href="/block/{{tx.blockNumber}}" ng-if="tx.blockNumber">{{tx.blockNumber | bigNumber}}</a>
                    <span ng-if="!tx.blockNumber">Pending</span>
                </td>
          </tr>
          <tr ><td width="25%">Time</td>
                <td>{{tx.datetime | date:'yyyy-MM-dd HH:mm:ss Z' }} ({{tx.timestamp | timeDuration}} ago)</td>
          </tr>
          <tr ><td width="25%">From</td>
                <td><a href="/addr/{{tx.from}}">{{tx.from}}</a></td></tr>
          <tr ng-show="tx.to"><td width="25%">To</td>
                <td><a href="/addr/{{tx.to}}">{{tx.to}}</a></td></tr>
          <tr ng-show="tx.creates"><td width="25%">creates</td>
                <td><a href="/addr/{{tx.creates}}">{{tx.creates}}</a></td></tr>
          <tr ><td width="25%">Value</td><td>{{tx.value | bigNumber}} GO </td></tr>
          <tr ><td width="25%">Gas Provided</td><td>{{tx.gas| bigNumber}}</td></tr>
          <tr ><td width="25%">Gas Price</td><td>{{tx.gasPrice| autoUnits}}</td></tr>
          <tr ><td width="25%">Gas Fee</td><td>{{tx.actualGasCost | bigNumber}} GO</td></tr>
          <tr ><td width="25%">Nonce</td><td>{{tx.nonce}}</td></tr>
          <tr ><td width="25%">Input Data</td><td><pre class="code">{{tx.input}}</pre></td></tr>
        </table>

        <table class="table table-condensed" ng-show="tx.isTrace">
          <thead>
              <tr>
                  <th> From </th>
                  <th> To </th>
                  <th style="text-align:right"> Amount </th>
                  <th style="text-align:right"> Gas </th>
                  <th style="text-align:right"> Gas Used </th>
                  <th></th>
              </tr>
          </thead>
          <tbody>
              <tr ng-repeat="t in internal_transactions track by $index">
                  <td class="truncate-addrhash"> <a href="/addr/{{t.from}}">{{t.from}}</a> </td>
                  <td class="truncate-addrhash"> <a href="/addr/{{t.to}}">{{t.to}}</a> </td>
                  <td style="text-align:right"> {{t.value | bigNumber}} </td>
                  <td style="text-align:right"> {{t.gas | bigNumber}} </td>
                  <td style="text-align:right"> {{t.gasUsed | bigNumber}} </td>
                  <td style="text-align:center"><span class="label label-sm label-info {{t.type}}"> {{t.type}}</span><span class="label label-sm label-danger" ng-show="t.error"> {{t.error}}</span></td>
              </tr>
          </tbody>
        </table>
    </div>

  </div>
</div>
